from django.apps import AppConfig


class TasksConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'tasks'
    
    def ready(self):
        # 导入并注册定时任务
        from .tasks import register_scheduled_tasks
        register_scheduled_tasks()
